<div class="left-col" role="main">
  	<div class="tree">
  		<ul class="nav nav-pills nav-stacked">
	  	  <div>&nbsp</div>
		  <li ><a href="/depots/mydepots.html">专利库</a></li>
		  <div>&nbsp</div>
		  <li ><a href="/depots/searchquery.html">检索库</a></li>
		  <div>&nbsp</div>
		</ul>
	</div>
</div>

<script>
  	$('div.left-col>div.tree>ul>li>a').each(function(){
  		if($(this).attr('href')==window.document.location.pathname){
  			$(this).parent('li').addClass('active');
  		}
  	});
  </script>